package toubiao.test.bean;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class Teacher {

	private String teacherName;
	private int teacherId;
	
	private Teacher[] teacherArray;
	
	private Set<Teacher> teacherSet=new HashSet<>();
	
	private Student[] studentArray;
	
	private Set<Student> studentSet=new HashSet<>();
	
	public Teacher(String teacherName, int teacherId) {
		super();
		this.teacherName = teacherName;
		this.teacherId = teacherId;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public int getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(int teacherId) {
		this.teacherId = teacherId;
	}

	public Student[] getStudentArray() {
		return studentArray;
	}

	public void setStudentArray(Student[] studentArray) {
		this.studentArray = studentArray;
	}

	public Set<Student> getStudentSet() {
		return studentSet;
	}

	public void setStudentSet(Set<Student> studentSet) {
		this.studentSet = studentSet;
	}

	public Teacher[] getTeacherArray() {
		return teacherArray;
	}

	public void setTeacherArray(Teacher[] teacherArray) {
		this.teacherArray = teacherArray;
	}

	public Set<Teacher> getTeacherSet() {
		return teacherSet;
	}

	public void setTeacherSet(Set<Teacher> teacherSet) {
		this.teacherSet = teacherSet;
	}

	@Override
	public String toString() {
		return "Teacher [teacherName=" + teacherName + ", teacherId="
				+ teacherId + ", teacherArray=" + Arrays.toString(teacherArray)
				+ ", teacherSet=" + teacherSet + ", studentArray="
				+ Arrays.toString(studentArray) + ", studentSet=" + studentSet
				+ ", getTeacherName()=" + getTeacherName()
				+ ", getTeacherId()=" + getTeacherId() + ", getStudentArray()="
				+ Arrays.toString(getStudentArray()) + ", getStudentSet()="
				+ getStudentSet() + ", getTeacherArray()="
				+ Arrays.toString(getTeacherArray()) + ", getTeacherSet()="
				+ getTeacherSet() + ", getClass()=" + getClass()
				+ ", hashCode()=" + hashCode() + ", toString()="
				+ super.toString() + "]";
	}
	
	
}
